package com.qk.management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qk.domain.business.BusinessCountDO;
import com.qk.domain.business.BusinessDO;
import com.qk.dto.business.BusinessListDTO;
import com.qk.dto.business.BusinessPoolListDTO;
import com.qk.entity.Business;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 商机mapper数据层
 * @Author:Mr.m
 * @Date: 2025-10-15 10:59
 * @Description:
 */
@Mapper
public interface BusinessMapper extends BaseMapper<Business> {
    /**
     * 商机公海列表
     *
     * @param dto 商机信息
     * @return 商机列表
     */
    List<Business> selectPoolByPage(BusinessPoolListDTO dto);

    /**
     * 商机列表
     *
     * @param dto 商机信息
     * @return 商机列表
     */
    List<BusinessDO> selectBusinessByPage(BusinessListDTO dto);

    /**
     * 商机数据统计
     *
     * @return 商机统计数据
     */
    BusinessCountDO selectCountBusiness();


}
